package com.jing.weibo.mapper.pb;

import java.util.List;

import com.jing.weibo.pojo.pb.PbUserTypeSeat;

/**
 * 泡吧用户分区位置的Mapper
 * @author jing.yue
 * @version 2012/09/25 1.0.0
 */
public interface PbUserTypeSeatMapper {

	/**
	 * 分页获取泡吧用户分区位置用户列表
	 * @param pbUserTypeSeat
	 * @return
	 * @throws Exception
	 */
	public abstract List<PbUserTypeSeat> findPbUserTypeSeat(PbUserTypeSeat pbUserTypeSeat) throws Exception;

	/**
	 * 分页获取泡吧用户分区位置用户列表记录数
	 * @param pbUserTypeSeat
	 * @return
	 * @throws Exception
	 */
	public abstract Integer findPbUserTypeSeatCount(PbUserTypeSeat pbUserTypeSeat) throws Exception;

	/**
	 * 保存泡吧用户分区位置
	 * @param pbUserTypeSeat
	 * @throws Exception
	 */
	public abstract void savePbUserTypeSeat(PbUserTypeSeat pbUserTypeSeat) throws Exception;

	/**
	 * 根据用户名和位置ID修改非当前用户的信息为删除状态
	 * @param pbUserTypeSeat
	 * @throws Exception
	 */
	public abstract void updatePbUserTypeSeatToLog(PbUserTypeSeat pbUserTypeSeat) throws Exception;

	/**
	 * 根据用户名修改当前用户的所有位置信息为删除状态
	 * @param pbUserTypeSeat
	 * @throws Exception
	 */
	public abstract void updatePbUserTypeSeatUsernameToLog(PbUserTypeSeat pbUserTypeSeat) throws Exception;

	/**
	 * 根据ID查询对象
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public abstract PbUserTypeSeat findByIdPbUserTypeSeat(Integer id) throws Exception;

	/**
	 * 根据ID修改粉丝数目
	 * @param pbUserTypeSeat
	 * @throws Exception
	 */
	public abstract void updatePbUserTypeSeatFansnum(PbUserTypeSeat pbUserTypeSeat) throws Exception;

	/**
	 * 修改用户分区位置信息
	 * @param pbUserTypeSeat
	 * @throws Exception
	 */
	public abstract void updatePbUserTypeSeat(PbUserTypeSeat pbUserTypeSeat) throws Exception;

	/**
	 * 分页根据用户名获取用户泡吧分区位置列表信息
	 * @param pbUserTypeSeat
	 * @return
	 * @throws Exception
	 */
	public abstract List<PbUserTypeSeat> findByUsernamePuts(PbUserTypeSeat pbUserTypeSeat) throws Exception;

	/**
	 * 分页根据用户名获取用户泡吧分区位置列表信息记录数
	 * @param pbUserTypeSeat
	 * @return
	 * @throws Exception
	 */
	public abstract Integer findByUsernamePutsCount(PbUserTypeSeat pbUserTypeSeat) throws Exception;

	/**
	 * 根据用户名和泡吧分区ID获取第一个用户泡吧分区位置对象
	 * @param pbUserTypeSeat
	 * @return
	 * @throws Exception
	 */
	public abstract PbUserTypeSeat findByUsernameTypeidPuts(PbUserTypeSeat pbUserTypeSeat) throws Exception;

	/**
	 * 根据用户名和ID修改当前位置为删除状态
	 * @param pbUserTypeSeat
	 * @throws Exception
	 */
	public abstract void updatePbUserTypeSeatUsernameIdToLog(PbUserTypeSeat pbUserTypeSeat) throws Exception;
}